package com.sca.order.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.sca.order.entity.Order;

import java.util.List;

/**
 * @author liuxianfei
 * @since 2020/11/3 11:48
 */
public interface OrderService extends IService<Order> {

    Boolean submit(Integer userId, Long goodId, Integer num) throws Exception;

    Boolean submitForRedis(Integer userId, Long goodId, Integer num);

    List<Order> testShardingSql();

}
